package com.binfenhulian.chinaenergy.ces.crawler.constants;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

/**
 * Created by wanghjbuf on 2018/3/8.
 */
@Service
public class Constants {

    private static Constants INSTANCE;

    public static final String CRAWLER_REDIS_SEED_URL_KEY_PREFIX = "crawler.redis.seed.url.key:";
    public static final String CRAWLER_REDIS_SEED_URL_QUEUE = "crawler.redis.seed.url.queue";

    @Bean
    public static Constants getInstance() {
        if (INSTANCE == null) {
            synchronized (Constants.class) {
                if (INSTANCE == null) {
                    INSTANCE = new Constants();
                }
            }
        }
        return INSTANCE;
    }
}
